package com.example.hospitalmanagement.utils

import android.content.Context

class DisplayUtil {
    companion object {
        /**
         * dp转px
         */
        fun dp2px(context: Context, dp: Float): Int =
            (dp * context.resources.displayMetrics.density).toInt()
    }
}